<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>定位信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/car/gpsInfo/">定位信息列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="gpsInfo" action="${ctx}/car/gpsInfo/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>sim：</label>
				<form:input path="simNo" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>发送时间：</label>
				<input name="sendTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${gpsInfo.sendTime}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>sim</th>
				<th>车牌号</th>
				<th>经度</th>
				<th>纬度</th>
				<th>速度</th>
				<th>对经纬度的地理位置解析</th>
				<th>方向,0～359，正北为0，顺时针</th>
				<th>报警位状态</th>
				<th>里程</th>
				<th>油量</th>
				<th>海拔</th>
				<th>状态</th>
				<th>发送时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="gpsInfo">
			<tr>
				<td><a href="${ctx}/car/gpsInfo/form?id=${gpsInfo.id}">
					${gpsInfo.simNo}
				</a></td>
				<td>
					${gpsInfo.plateNo}
				</td>
				<td>
					${gpsInfo.longitude}
				</td>
				<td>
					${gpsInfo.latitude}
				</td>
				<td>
					${gpsInfo.speed}
				</td>
				<td>
					${gpsInfo.location}
				</td>
				<td>
					${gpsInfo.direction}
				</td>
				<td>
					${gpsInfo.alarmStatus}
				</td>
				<td>
					${gpsInfo.mileage}
				</td>
				<td>
					${gpsInfo.oilNum}
				</td>
				<td>
					${gpsInfo.altitude}
				</td>
				<td>
					${gpsInfo.status}
				</td>
				<td>
					<fmt:formatDate value="${gpsInfo.sendTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>